<extend name="layout:index"/>
<block name="content">
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
      <div class="row">
	  <span style="color:red">现金积分交易时间:每天09:00~18:00</span>
      <div class="tabs-container">
		   <ul class="nav nav-tabs text-center">
		       <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true" id="a_one" onclick="f1()" style="width: 300px; background-color: white;">购买现金积分</a>
		       </li>
		       <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false" id="a_two" onclick="f2()" style="width: 300px; background-color: white;">购买中的现金积分</a>
		       </li>
		   </ul>
      <div class="tab-content">
       <div id="tab-1" class="tab-pane active">
           <div class="panel-body">
			<div class="col-sm-12">
			  <div class="ibox float-e-margins">
			      <div class="ibox-content">
			          <form class="form-horizontal m-t" id="signupForm" action="?act=act_jfmc" method="post" return="check()">
			              <div class="table-responsive">
			              <table class="table table-bordered table-striped table-hover">
							<tbody>
								<tr>
									<th>卖出会员</th>
									<th>交易类型</th>
									<th>出售数量</th>
									<th>人民币</th>
									<!-- <th>交易信息</th> -->
									<th>操作</th>
								</tr>
								<volist name="money" id="vo">
                                <tr>
									<td>{$vo.sell_user_name}</td>
									<td>{$vo.content}</td>
									<td>{$vo.sell_num}</td>
									<td>{$vo['sell_num']*$vo['sell_money']}</td>
								<!-- 	<td><a id="link" class="link" name="" style="cursor: pointer;" target="_top">交易信息</a></td> -->
									<td><a href="__MODULE__/sell/buy?mk={$vo.mk_id}">购买</a></td>
								</tr>
								</volist>
                            </tbody>
						</table>
						</div>
			           </form>
			       </div>
			   </div>
			</div>
            </div>
        </div>
        <div id="tab-2" class="tab-pane">
            <div class="panel-body">
            <div class="col-sm-12">
			  <div class="ibox float-e-margins">
			    <div class="ibox-content">
            	<form class="form-horizontal m-t" name="aqmmform">
	              		<div class="table-responsive">
							<table class="table table-bordered table-striped table-hover">
								<thead>
									<tr>
										<th>订单号</th>
										<th>卖出会员ID</th>
										<th>交易类型</th>
										<th>出售数量</th>
										<th>人民币</th>
										<th>交易状态</th>
										<th>时间</th>
										<th>交易信息</th>
										<th>操作</th>
									</tr>
									</thead>
									<tbody>
									<volist name="money2" id="vo">
								 		<tr>
											<td>1</td>
											<td>{$vo.sell_user_name}</td>
											<td>{$vo.content}</td>
											<td>{$vo.sell_num}</td>
											<td>{$vo['sell_num']*$vo['sell_money']}</td>
											<if condition="$vo.status eq 1">
												<th>等待付款</th>
											<elseif condition="$vo.status eq 2"/>
												<th>已付款</th>
											<elseif condition="$vo.status eq 3"/>
												<th>交易成功</th>
											<elseif condition="$vo.status eq 4"/>
												<th>已退回</th>
											<elseif condition="$vo.status eq 5"/>
												<th>预约挂卖</th>
											<elseif condition="$vo.status eq 6"/>
												<th>已撤销</th>
											</if>
											<td>{:date('Y-m-d H:i:s',$vo['sell_time'])}</td>
											<td><a id="link" class="link" name="" style="cursor: pointer;" target="_top" href="__MODULE__/sell/infomation1?aa={$vo.mk_id}">交易信息</a></td>
											<if condition="$vo.status eq 1">
												<td><a href="__MODULE__/sell/fukuan?mk={$vo.mk_id}">付款</a></td>
											<else/>
												<td></td>
											</if>
										</tr>
									</volist>
								</tbody>
							</table>
							</div>
							<div class="">



 <div id="pager">
  <span style="margin-right:10px;">总计 <b>{$count}</b>  个记录</span>
      
      </div>




</div>
</form>
	             
	           </div>
	           </div>
	           </div>
            </div>
        </div>
   </div>
   </div>
</div>
    </div>




</body>
</block>